-
-
Notifications
You must be signed in to change notification settings - Fork 1.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
jest-glamor-react docs #390
Conversation
I went ahead and added the img to the docs. Thanks Gregg! |
Sounds good, thanks Kye. |
``` | ||
|
||
### Notes | ||
It's recommended to set your Jest `testEnvironment` to `jsdom`, but you can mock global browser objects instead. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I haven't checked, does manually mocking global browser objects work with jest-glamor-react?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I personally just set my env to jsdom, but the docs say it does. https://github.com/kentcdodds/jest-glamor-react#usage
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ok 👍
What: Closes #208 - Add docs for jest-glamor-react
Checklist:
I also have a before and after screenshot that could be useful, but with the redesign of the site I wasn't sure where that might fit in. Included below.